#include "StdAfx.h"
#include "ConfigStore.h"

IMPLEMENT_SERIAL(ConfigStore, CObject,1);

ConfigStore::ConfigStore(void)
{
}

ConfigStore::ConfigStore(ConfigStore& cn){
	this->shortBreak = cn.shortBreak;
	this->longBreak = cn.longBreak;
}
void ConfigStore::Serialize( CArchive& archive ){
	
	CObject::Serialize( archive );

	if( archive.IsStoring() )
		archive << this->shortBreak << this->longBreak;
    else
        archive >> this->shortBreak >> this->longBreak;

}

void ConfigStore::setShortBreak(long sb){
	this->shortBreak = sb;
}
void ConfigStore::setLongBreak(long lb){
	
	this->longBreak = lb;
}
long ConfigStore::getShortBreak(){
	
	return this->shortBreak;
}
long ConfigStore::getLongBreak(){
	
	return this->longBreak;
}